#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//void* my_memcpy(void* dest, const void* src, size_t num)
//{
//	char* pp1 = (char*)dest;
//	char* pp2 = (char*)src;
//	for (int i = 0; i < num; i++)
//	{
//		pp1[i] = pp2[i];
//	}
//	return dest;
//}
//int main()
//{
//	int p1[4] = { 1,2,3,4 };
//	int p2[4] = { 0 };
//	my_memcpy(p2, p1, sizeof(p1));
//	for (int i = 0; i < 4; i++)
//	{
//		printf("%d ", p2[i]);
//	}
//	return 0;
//
//}
//
//int main()
//{
//    unsigned char puc[4];
//    struct tagPIM
//    {
//        unsigned char ucPim1;
//        unsigned char ucData0 : 1;
//        unsigned char ucData1 : 2;
//        unsigned char ucData2 : 3;
//    }*pstPimData;
//    pstPimData = (struct tagPIM*)puc;
//    memset(puc, 0, 4);
//    pstPimData->ucPim1 = 2;
//    pstPimData->ucData0 = 3;
//    pstPimData->ucData1 = 4;
//    pstPimData->ucData2 = 5;
//    printf("%02x %02x %02x %02x\n", puc[0], puc[1], puc[2], puc[3]);
//    return 0;
//}
#define MAX_SIZE 5
struct _Record_Struct
{
	unsigned char Env_Alarm_ID : 4;
	unsigned char Para1 : 2;
	unsigned char state;
	unsigned char avail : 1;
}*Env_Alarm_Record;
struct _Record_Struct* pointer = (struct _Record_Struct*)malloc(sizeof(struct _Record_Struct) * MAX_SIZE);